import turtle
import random


turtle.colormode(255)
n=0
m = 300
while n<6:
    r = random.randint(0, 255)
    g = random.randint(0, 255)
    b = random.randint(0, 255)
    turtle.pencolor(r,g,b)
    turtle.dot(m)
    n+=1
    m-=50
turtle.pencolor('orange')
turtle.right(90)
turtle.pensize(3)
turtle.forward(300)
turtle.done()